package code.framework.android.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

/**
 * <h3>Translucent Activity</h3>
 * 
 * <p>
 * This demonstrates the how to write an activity that is translucent, allowing
 * windows underneath to show through.
 * </p>
 */
public class MaskActivity extends Activity {
	private class CloseButtonOnClickListener implements OnClickListener {
		public void onClick(View v) {
			MaskActivity.this.finish();
		}
	}

	/**
	 * Initialization of the Activity after it is first created. Must at least
	 * call {@link android.app.Activity#setContentView setContentView()} to
	 * describe what is to be displayed in the screen.
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// Be sure to call the super class.
		super.onCreate(savedInstanceState);

		requestWindowFeature(Window.FEATURE_NO_TITLE);

		// // // Have the system blur any windows behind this one.
		// getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
		// WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

		// See assets/res/any/layout/dialog_activity.xml for this
		// view layout definition, which is being set here as
		// the content of our screen.
		/*
		 * TODO: uncomment
		 */
		// setContentView(R.layout.mask_activity);
		//
		// TextView messageTextView = (TextView) super
		// .findViewById(R.id.messageText);
		// String message = super.getIntent().getStringExtra(Constants.MESSAGE);
		// messageTextView.setText(message);
		//
		// Button closeButton = (Button) super.findViewById(R.id.closeButton);
		// closeButton.setText(HkmoviesResourceHelper.getLocaleString(
		// "naming_close", this));
		// closeButton.setOnClickListener(new CloseButtonOnClickListener());
	}
}
